<?php
namespace app\admin\model;

use think\Model;

class Goods extends Model
{
    public static function getGoodsList($where,$order)
    {
        return Goods::name('goods')
            ->alias('g')
            ->join('ecm_category','ecm_goods.cid=ecm_category.id','left')
            ->field('*,ecm_goods.id,ecm_goods.name,ecm_category.name as cateName,ecm_goods.addtime')
            ->where($where)
            ->order($order);
    }
}